package com.wenjie.original.service.impl;

import com.mybatisflex.core.query.QueryWrapper;
import com.wenjie.original.entity.OrderBox;
import com.wenjie.original.entity.table.OrderBoxTableDef;
import com.wenjie.original.flex_config.baseInterface.Cus_ServiceImp;
import com.wenjie.original.mapper.OrderBoxMapper;
import com.wenjie.original.service.IOrderBoxService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 打包计划  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-04 09:57:15
 */
@Service
public class OrderBoxServiceImpl extends Cus_ServiceImp<OrderBoxMapper, OrderBox> implements IOrderBoxService {


    @Override
    public List<OrderBox> getByOrderId(Long orderId) {
        return this.list(QueryWrapper.create().where(OrderBoxTableDef.ORDER_BOX.ORDER_ID.eq(orderId)));
    }
}
